package main

import "time"

var limit = 600
var limitChan = make(chan int,limit)

func main(){

	limitChan<-1
	defer func(){
		<-limitChan
	}()


	for{
		time.Sleep(time.Millisecond * 100)
		newObj()
	}


}

func newObj(){
	t :=new(stu)
	t.name="q"
	t.age=1
}

type stu struct{
	name string
	age int
}
